package com.xds.springcloud.service;

import com.xds.springcloud.entity.CommonResult;
import com.xds.springcloud.entity.Payment;
import feign.Param;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author Bai Xu
 * @Date 2021/9/29 16:39
 * @Version 1.0
 */
@Component
@FeignClient("CLOUD-PAYMENT-SERVICE")
public interface PaymentFeignService {
    @GetMapping("/payment/get/{id}")
    public CommonResult get(@PathVariable("id") Long id );


}
